import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-09-05
 * Time: 8:51
 * To BE A Better Person-2020-3-2
 */
public class TestDemo9 {
    public static void main(String[] args) {
        try(Writer writer=new FileWriter("test2.txt")) {
            writer.write("hello world");

        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
